<%@page import="com.mmy.domain.scenic.TScenicOrder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>

<title>打印收款</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/FrontHeader.jsp"></jsp:include>
		<div id="index-back">
			<main class="at-padding-large-bottom">
			<article>		
	
	<section class="container">
			<div class="information ">
			<form action="savepayorderhotel" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>收据打印
						</h4>
				<div class="input-container background">
				<table class="info-table" >
				
				<tr>
					<th><label>收据号</label></th>
					<td>
						<label>${tHotelOrder.getVoucher()}</label>
					</td>
					<th><label>电子票使用日期</label></th>
					<td>
						<fmt:formatDate value='${tHotelOrder.getUseDate()}' pattern='yyyy-MM-dd'/>
					</td>
					
				</tr>
				<c:forEach items="${lstHotelOrder}" var="lstScenicOrder">
				<tr>
					<th><label>订单人姓名</label></th>
					<td>
						<label>${lstHotelOrder.getOrderName()}</label>
					</td>
					<th><label>订单联系方式</label></th>
					<td>
						<label>${lstHotelOrder.getOrderTel()}</label>
					</td>
				</tr>
				</c:forEach>
				<tr>
					<th><label>订单总额</label></th>
					<td>
						<label>${tHotelOrder.getOrderAmount()}</label>
					</td>
					<th><label>应收款</label></th>
					<td>
						<label>${tHotelOrder.getReceivable()}</label>
					</td>
				</tr>
				<tr>
					<th><label>实收款</label></th>
					<td>
						<label>${tHotelOrder.getReceipt()}</label>
					</td>
					
					<th><label>付款类型</label></th>
					<c:choose>
						     <c:when test="${tHotelOrder.getPayType() == 0}">
						           <td><label>现金</label></td>
						     </c:when>
						     <c:when test="${tHotelOrder.getPayType() == 1}">
						           <td><label>微信</label></td>
						     </c:when>
						     <c:when test="${tHotelOrder.getPayType() == 2}">
						           <td><label>支付宝</label></td>
						     </c:when>
						    <c:otherwise>
						           <td><label>银联卡</label></td>
						    </c:otherwise>
					</c:choose>
				</tr>
				
					
				</table>
				<center>
				<input type="button" class="btn" value="打印" onclick=""/>
				<input type="button" class="btn" value="确定" onclick="location.href='tofronthotelindex'"/>
				
				</center> 
				
							
							
				</div>
				
			</div>
			</section>
			</article>
			</main>
			</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<!-- Main Slider -->
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
		<script>
			new GridScrollFx( document.getElementById( 'news-grid' ), {
				viewportFactor : 0.4
			} );
		</script>

</body>

</html>